<template>
  <div class="mv">
    <MvItem v-for="item in mvs" :key="item.id" :item="item" />
  </div>
</template>

<script>
import MvItem from "@/components/basics/MvItem.vue";
export default {
  components: {
    MvItem,
  },
  async created() {
    // 获取mv
    const { id } = this.$route.query;
    const res = await this.axios.get(`/artist/mv?id=${id}`);
    console.log(res);
    this.mvs = res.data.mvs;
  },
  data() {
    return {
      mvs: [],
    };
  },
};
</script>

<style>
.mv {
  padding: 10px;
}
</style>
